package org.neuedu.chapter06_0621.demo03;

public class ObjectDemo01 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.name = "tom";
        String name = stu1.getName();
        System.out.println(name);

        stu1.setName("mike");
        System.out.println(stu1.name);

        Student stu2 = new Student();
        stu2.name = "lucy";
        String name1 = stu2.getName();
        System.out.println(name1);


    }
}
